home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 41 / Issue 41.iso / pc / PCSoftware / Netscape 6 Official Release / nim.xpi / bin / chrome / aim.jar / content / aim / aimABViewOverlay.js < prev    next >
Encoding:
Text File  |  2000-09-13  |  830 b   |  25 lines

  1. function OnLoadAimABViewOverlay ()
  2. {
  3.       dump("Inside Onload ABView overlay\n");
  4.     var ABTree= document.getElementById('resultsTree');
  5.     var datasourceContractIDPrefix = "@mozilla.org/rdf/datasource;1?name=";
  6.     var AIMDSContractID = datasourceContractIDPrefix + "AIM";
  7.     var AimDataSource;
  8.  
  9.     AimDataSource = Components.classes[AIMDSContractID].createInstance();
  10.     AimDataSource = AimDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);
  11.     var database=ABTree.database;
  12.     database.AddDataSource(AimDataSource);
  13.     var ref=ABTree.getAttribute('ref');
  14.     ABTree.setAttribute('ref',ref);
  15. }
  16.  
  17. function OnUnLoadAimABViewOverlay ()
  18. {
  19.       dump("Inside UNLOAD of  ABView overlay\n");       
  20. }
  21.  
  22.  
  23. addEventListener("load", OnLoadAimABViewOverlay, false);
  24. addEventListener("unload", OnUnLoadAimABViewOverlay, false);
  25.